package com.xiaxinyu.thread.pool.contoller;

import com.xiaxinyu.thread.pool.service.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author XIAXINYU3
 * @date 2021/6/11
 */
@RestController
public class ProducerController {
    @Autowired
    Producer producer;

    @GetMapping("/produce")
    public String saveStatusConfig4Project() {
        producer.produce();
        return "success";
    }
}
